Repository navigation
Replace the deprecated add_event_pair with add_cleanup_event and add_event - #3225
Draft
ndgrigorian wants to merge 1 commit into
Draft
ndgrigorian wants to merge 1 commit into
ndgrigorian wants to merge 1 commit into
Conversation
…event dpctl 0.24.0dev0 deprecated the order manager's add_event_pair, as the first event it records gates the release of the arguments rather than being a host task. Every `_manager.add_event_pair(ht_ev, ev)` is now `_manager.add_cleanup_event(ht_ev)` followed by `_manager.add_event(ev)`, which record the same events in the same lists.
5 of 7 tasks
Contributor
|
Array API standard conformance tests for dpnp=0.22.0dev3+80.gf92811446 ran successfully. |
Collaborator
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/3225/index.html |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces every call to the order manager's
add_event_pair, which dpctl 0.24.0dev0 deprecated (IntelPython/dpctl#2359), withadd_cleanup_eventandadd_event. It is stacked on #3224.With #3224, the first event an extension returns is that of the empty kernel gating the release of its arguments, not a host task. Each
_manager.add_event_pair(ht_ev, ev)becomes_manager.add_cleanup_event(ht_ev)followed by_manager.add_event(ev), which record the same events in the same lists. The 314 calls in 34 files were rewritten with a script working on the AST, so the arguments are unchanged, anddpnp/AGENTS.mdnow describes the new calls. Theht_ev-style variable names are left as they are.The full suite passes with it on a Level Zero iGPU (0x7d41, WSL). Each call now takes the order manager's lock and prunes completed events twice instead of once; this wasn't measured.